//////////////////////////////////////////////////////////////////////////
// FileName:
// CreateBy:
// CreateDate:2010/5/20
// Description:
//		BusList class
//
// Modify Log:
//
// Copyright:ASL
/////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Auto.Components;

namespace Auto.Data.BusMan.Model
{
    [Serializable]
    public class BusList
    {
        #region --Field--
        ///<summary>
        ///Data Table Bus_BusList
        ///</summary>
        public const string TABLENAME_Bus_BusList = "Bus_BusList";
        /// <sumary> 
        /// (RecID Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_RecID = "RecID";
        /// <sumary> 
        /// (BusID Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_BusID = "BusID";
        /// <sumary> 
        /// (CompanyID Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_CompanyID = "CompanyID";
        /// <sumary> 
        /// (CompanyName Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_CompanyName = "CompanyName";
        /// <sumary> 
        /// (CompanyName Type:Decimal Len:0) 
        /// </sumary> 
        public const string FIELD_OdometerBus = "OdometerBus";
        /// <sumary> 
        /// (BusIdentificationNO Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_BusIdentificationNO = "BusIdentificationNO";
        /// <sumary> 
        /// (BusSpec Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_BusSpec = "BusSpec";
        /// <sumary> 
        /// (BusBrand Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_BusBrand = "BusBrand";
        /// <sumary> 
        /// (ManufacturerID Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_ManufacturerID = "ManufacturerID";
        /// <sumary> 
        /// (ManufacturerName Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_ManufacturerName = "ManufacturerName";
        /// <sumary> 
        /// (DeliveryCapacity Type:Decimal Len:0) 
        /// </sumary> 
        public const string FIELD_DeliveryCapacity = "DeliveryCapacity";
        /// <sumary> 
        /// (Seatings Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_Seatings = "Seatings";
        /// <sumary> 
        /// (UseDivID Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_UseDivID = "UseDivID";
        /// <sumary> 
        /// (UsedFor Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_UsedFor = "UsedFor";
        /// <sumary> 
        /// (StatusOfCapital Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_StatusOfCapital = "StatusOfCapital";
        /// <sumary> 
        /// (BusConditions Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_BusConditions = "BusConditions";
        /// <sumary> 
        /// (Note Type:Bit Len:0) 
        /// </sumary> 
        public const string FIELD_WithBucket = "WithBucket";

        /// <sumary> 
        /// (Note Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_Note = "Note";
        /// <sumary> 
        /// (Price Type:Decimal Len:0) 
        /// </sumary> 
        public const string FIELD_Price = "Price";
        /// <sumary> 
        /// (Invoice Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_Invoice = "Invoice";
        /// <sumary> 
        /// (ExFactoryDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_ExFactoryDate = "ExFactoryDate";
        /// <sumary> 
        /// (BuyDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_BuyDate = "BuyDate";
        /// <sumary> 
        /// (BusAppearance Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_BusAppearance = "BusAppearance";
        /// <sumary> 
        /// (BusLicence Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_BusLicence = "BusLicence";
        /// <sumary> 
        /// (BusCertificateRegistry Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_BusCertificateRegistry = "BusCertificateRegistry";
        /// <sumary> 
        /// (OperationCertificate Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_OperationCertificate = "OperationCertificate";
        /// <sumary> 
        /// (InsuranceCompany Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_InsuranceCompany = "InsuranceCompany";
        /// <sumary> 
        /// (AnnualVerificationDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_AnnualVerificationDate = "AnnualVerificationDate";
        /// <sumary> 
        /// (AnnualVerificationCycle Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_AnnualVerificationCycle = "AnnualVerificationCycle";
        /// <sumary> 
        /// (InsuranceDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_InsuranceDate = "InsuranceDate";
        /// <sumary> 
        /// (InsuranceCycle Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_InsuranceCycle = "InsuranceCycle";
        /// <sumary> 
        /// (OperationCeriticateDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_OperationCeriticateDate = "OperationCeriticateDate";
        /// <sumary> 
        /// (OperationCeriticateCycle Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_OperationCeriticateCycle = "OperationCeriticateCycle";
        /// <sumary> 
        /// (Extinguisher Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_Extinguisher = "Extinguisher";
        /// <sumary> 
        /// (ExtinguisherProductionDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_ExtinguisherProductionDate = "ExtinguisherProductionDate";
        /// <sumary> 
        /// (ExtinguisherLifecycle Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_ExtinguisherLifecycle = "ExtinguisherLifecycle";
        /// <sumary> 
        /// (Jack Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_Jack = "Jack";
        /// <sumary> 
        /// (JackProductionDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_JackProductionDate = "JackProductionDate";
        /// <sumary> 
        /// (WarningBoard Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_WarningBoard = "WarningBoard";
        /// <sumary> 
        /// (Manual Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_Manual = "Manual";
        /// <sumary> 
        /// (BusTransfer Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_BusTransfer = "BusTransfer";
        /// <sumary> 
        /// (BusKey Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_BusKey = "BusKey";
        /// <sumary> 
        /// (CigaretteLighter Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_CigaretteLighter = "CigaretteLighter";
        /// <sumary> 
        /// (SpareTyre Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_SpareTyre = "SpareTyre";
        /// <sumary> 
        /// (Tools Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_Tools = "Tools";
        /// <sumary> 
        /// (AttachNote Type:NVarChar Len:100) 
        /// </sumary> 
        public const string FIELD_AttathNote = "AttachNote";

        /// <sumary> 
        /// (RecDivID Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_RecDivID = "RecDivID";
        /// <sumary> 
        /// (RecAcct Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_RecAcct = "RecAcct";
        /// <sumary> 
        /// (RecDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_RecDate = "RecDate";
        /// <sumary> 
        /// (Void Type:Bit Len:0) 
        /// </sumary> 
        public const string FIELD_Void = "Void";
        /// <sumary> 
        /// (VoidAcct Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_VoidAcct = "VoidAcct";
        /// <sumary> 
        /// (VoidDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_VoidDate = "VoidDate";
        /// <sumary> 
        /// (UserAcct Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_UserAcct = "UserAcct";
        /// <sumary> 
        /// (LastUpdateDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_LastUpdateDate = "LastUpdateDate";
        #endregion --Field--

        #region --Property--
        private int _recid;
        private string _busid;
        private string _companyid;
        private string _companyname;
        private decimal _odometerbus;
        private string _busidentificationno;
        private string _busspec;
        private string _busbrand;
        private string _manufacturerid;
        private string _manufacturername;
        private decimal _deliverycapacity;
        private int _seatings;
        private string _usedivid;
        private string _usedfor;
        private string _statusofcapital;
        private string _busconditions;
        private bool _withbucket;
        private string _note;
        private decimal _price;
        private string _invoice;
        private DateTime _exfactorydate;
        private DateTime _buydate;
        private string _busappearance;
        private string _buslicence;
        private string _buscertificateregistry;
        private string _operationcertificate;
        private string _insurancecompany;
        private DateTime _annualverificationdate;
        private int _annualverificationcycle;
        private DateTime _insurancedate;
        private int _insurancecycle;
        private DateTime? _operationceriticatedate;
        private int? _operationceriticatecycle;
        private int _extinguisher;
        private DateTime? _extinguisherproductiondate;
        private int _extinguisherlifecycle;
        private int _jack;
        private DateTime? _jackproductiondate;
        private int _warningboard;
        private int _manual;
        private string _bustransfer;
        private int _buskey;
        private int _cigarettelighter;
        private int _sparetyre;
        private int _tools;
        private string _attachnote;

        private string _recdivid;
        private string _recacct;
        private DateTime _recdate;
        private bool _void;
        private string _voidacct;
        private DateTime _voiddate;
        private string _useracct;
        private DateTime _lastupdatedate;

        /// <sumary> 
        /// (RecID Type:Int Len:0) 
        /// </sumary> 
        public int RecID
        {
            set { _recid = value; }
            get { return _recid; }
        }

        /// <sumary> 
        /// (BusID Type:VarChar Len:20) 
        /// </sumary> 
        public string BusID
        {
            set { _busid = value; }
            get { return _busid; }
        }

        /// <sumary> 
        /// (CompanyID Type:VarChar Len:20) 
        /// </sumary> 
        public string CompanyID
        {
            set { _companyid = value; }
            get { return _companyid; }
        }

        /// <sumary> 
        /// (CompanyName Type:NVarChar Len:50) 
        /// </sumary> 
        public string CompanyName
        {
            set { _companyname = value; }
            get { return _companyname; }
        }

        /// <summary>
        /// (OdometerBus Type:Decimal Len:0)
        /// </summary>
        public decimal OdometerBus
        {
            set { _odometerbus = value; }
            get { return _odometerbus; }
        }

        /// <sumary> 
        /// (BusIdentificationNO Type:NVarChar Len:50) 
        /// </sumary> 
        public string BusIdentificationNO
        {
            set { _busidentificationno = value; }
            get { return _busidentificationno; }
        }

        /// <sumary> 
        /// (BusSpec Type:NVarChar Len:50) 
        /// </sumary> 
        public string BusSpec
        {
            set { _busspec = value; }
            get { return _busspec; }
        }

        /// <sumary> 
        /// (BusBrand Type:NVarChar Len:50) 
        /// </sumary> 
        public string BusBrand
        {
            set { _busbrand = value; }
            get { return _busbrand; }
        }

        /// <sumary> 
        /// (ManufacturerID Type:VarChar Len:20) 
        /// </sumary> 
        public string ManufacturerID
        {
            set { _manufacturerid = value; }
            get { return _manufacturerid; }
        }

        /// <sumary> 
        /// (ManufacturerName Type:NVarChar Len:50) 
        /// </sumary> 
        public string ManufacturerName
        {
            set { _manufacturername = value; }
            get { return _manufacturername; }
        }

        /// <sumary> 
        /// (DeliveryCapacity Type:Decimal Len:0) 
        /// </sumary> 
        public decimal DeliveryCapacity
        {
            set { _deliverycapacity = value; }
            get { return _deliverycapacity; }
        }

        /// <sumary> 
        /// (Seatings Type:Int Len:0) 
        /// </sumary> 
        public int Seatings
        {
            set { _seatings = value; }
            get { return _seatings; }
        }

        /// <sumary> 
        /// (UseDivID Type:VarChar Len:20) 
        /// </sumary> 
        public string UseDivID
        {
            set { _usedivid = value; }
            get { return _usedivid; }
        }

        /// <sumary> 
        /// (UsedFor Type:NVarChar Len:50) 
        /// </sumary> 
        public string UsedFor
        {
            set { _usedfor = value; }
            get { return _usedfor; }
        }

        /// <sumary> 
        /// (StatusOfCapital Type:NVarChar Len:50) 
        /// </sumary> 
        public string StatusOfCapital
        {
            set { _statusofcapital = value; }
            get { return _statusofcapital; }
        }

        /// <sumary> 
        /// (BusConditions Type:NVarChar Len:50) 
        /// </sumary> 
        public string BusConditions
        {
            set { _busconditions = value; }
            get { return _busconditions; }
        }

        /// <sumary> 
        /// (Note Type:Bit Len:0) 
        /// </sumary> 
        public bool WithBucket
        {
            set { _withbucket = value; }
            get { return _withbucket; }
        }

        /// <sumary> 
        /// (Note Type:NVarChar Len:200) 
        /// </sumary> 
        public string Note
        {
            set { _note = value; }
            get { return _note; }
        }

        /// <sumary> 
        /// (Price Type:Decimal Len:0) 
        /// </sumary> 
        public decimal Price
        {
            set { _price = value; }
            get { return _price; }
        }

        /// <sumary> 
        /// (Invoice Type:NVarChar Len:200) 
        /// </sumary> 
        public string Invoice
        {
            set { _invoice = value; }
            get { return _invoice; }
        }

        /// <sumary> 
        /// (ExFactoryDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime ExFactoryDate
        {
            set { _exfactorydate = value; }
            get { return _exfactorydate; }
        }

        /// <sumary> 
        /// (BuyDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime BuyDate
        {
            set { _buydate = value; }
            get { return _buydate; }
        }

        /// <sumary> 
        /// (BusAppearance Type:NVarChar Len:200) 
        /// </sumary> 
        public string BusAppearance
        {
            set { _busappearance = value; }
            get { return _busappearance; }
        }

        /// <sumary> 
        /// (BusLicence Type:NVarChar Len:200) 
        /// </sumary> 
        public string BusLicence
        {
            set { _buslicence = value; }
            get { return _buslicence; }
        }

        /// <sumary> 
        /// (BusCertificateRegistry Type:NVarChar Len:200) 
        /// </sumary> 
        public string BusCertificateRegistry
        {
            set { _buscertificateregistry = value; }
            get { return _buscertificateregistry; }
        }

        /// <sumary> 
        /// (OperationCertificate Type:NVarChar Len:200) 
        /// </sumary> 
        public string OperationCertificate
        {
            set { _operationcertificate = value; }
            get { return _operationcertificate; }
        }

        /// <sumary> 
        /// (InsuranceCompany Type:NVarChar Len:50) 
        /// </sumary> 
        public string InsuranceCompany
        {
            set { _insurancecompany = value; }
            get { return _insurancecompany; }
        }

        /// <sumary> 
        /// (AnnualVerificationDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime AnnualVerificationDate
        {
            set { _annualverificationdate = value; }
            get { return _annualverificationdate; }
        }

        /// <sumary> 
        /// (AnnualVerificationCycle Type:Int Len:0) 
        /// </sumary> 
        public int AnnualVerificationCycle
        {
            set { _annualverificationcycle = value; }
            get { return _annualverificationcycle; }
        }

        /// <sumary> 
        /// (InsuranceDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime InsuranceDate
        {
            set { _insurancedate = value; }
            get { return _insurancedate; }
        }

        /// <sumary> 
        /// (InsuranceCycle Type:Int Len:0) 
        /// </sumary> 
        public int InsuranceCycle
        {
            set { _insurancecycle = value; }
            get { return _insurancecycle; }
        }

        /// <sumary> 
        /// (OperationCeriticateDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime? OperationCeriticateDate
        {
            set { _operationceriticatedate = value; }
            get { return _operationceriticatedate; }
        }

        /// <sumary> 
        /// (OperationCeriticateCycle Type:Int Len:0) 
        /// </sumary> 
        public int? OperationCeriticateCycle
        {
            set { _operationceriticatecycle = value; }
            get { return _operationceriticatecycle; }
        }

        /// <sumary> 
        /// (Extinguisher Type:Int Len:0) 
        /// </sumary> 
        public int Extinguisher
        {
            set { _extinguisher = value; }
            get { return _extinguisher; }
        }

        /// <sumary> 
        /// (ExtinguisherProductionDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime? ExtinguisherProductionDate
        {
            set { _extinguisherproductiondate = value; }
            get { return _extinguisherproductiondate; }
        }

        /// <sumary> 
        /// (ExtinguisherLifecycle Type:Int Len:0) 
        /// </sumary> 
        public int ExtinguisherLifecycle
        {
            set { _extinguisherlifecycle = value; }
            get { return _extinguisherlifecycle; }
        }

        /// <sumary> 
        /// (Jack Type:Int Len:0) 
        /// </sumary> 
        public int Jack
        {
            set { _jack = value; }
            get { return _jack; }
        }

        /// <sumary> 
        /// (JackProductionDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime? JackProductionDate
        {
            set { _jackproductiondate = value; }
            get { return _jackproductiondate; }
        }

        /// <sumary> 
        /// (WarningBoard Type:Int Len:0) 
        /// </sumary> 
        public int WarningBoard
        {
            set { _warningboard = value; }
            get { return _warningboard; }
        }

        /// <sumary> 
        /// (Manual Type:Int Len:0) 
        /// </sumary> 
        public int Manual
        {
            set { _manual = value; }
            get { return _manual; }
        }

        /// <sumary> 
        /// (BusTransfer Type:NVarChar Len:200) 
        /// </sumary> 
        public string BusTransfer
        {
            set { _bustransfer = value; }
            get { return _bustransfer; }
        }

        /// <sumary> 
        /// (BusKey Type:Int Len:0) 
        /// </sumary> 
        public int BusKey
        {
            set { _buskey = value; }
            get { return _buskey; }
        }
        /// <sumary> 
        /// (CigaretteLighter Type:Int Len:0) 
        /// </sumary> 
        public int CigaretteLighter
        {
            set { _cigarettelighter = value; }
            get { return _cigarettelighter; }
        }

        /// <sumary> 
        /// (SpareTyre Type:Int Len:0) 
        /// </sumary> 
        public int SpareTyre
        {
            set { _sparetyre = value; }
            get { return _sparetyre; }
        }

        /// <sumary> 
        /// (Tools Type:Int Len:0) 
        /// </sumary> 
        public int Tools
        {
            set { _tools = value; }
            get { return _tools; }
        }

        /// <sumary> 
        /// (AttachNote Type:NVarChar Len:100) 
        /// </sumary> 
        public string AttachNote
        {
            set { _attachnote = value; }
            get { return _attachnote; }
        }

        /// <sumary> 
        /// (RecDivID Type:VarChar Len:20) 
        /// </sumary> 
        public string RecDivID
        {
            set { _recdivid = value; }
            get { return _recdivid; }
        }

        /// <sumary> 
        /// (RecAcct Type:VarChar Len:20) 
        /// </sumary> 
        public string RecAcct
        {
            set { _recacct = value; }
            get { return _recacct; }
        }

        /// <sumary> 
        /// (RecDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime RecDate
        {
            set { _recdate = value; }
            get { return _recdate; }
        }

        /// <sumary> 
        /// (Void Type:Bit Len:0) 
        /// </sumary> 
        public bool Void
        {
            set { _void = value; }
            get { return _void; }
        }

        /// <sumary> 
        /// (VoidAcct Type:VarChar Len:20) 
        /// </sumary> 
        public string VoidAcct
        {
            set { _voidacct = value; }
            get { return _voidacct; }
        }

        /// <sumary> 
        /// (VoidDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime VoidDate
        {
            set { _voiddate = value; }
            get { return _voiddate; }
        }

        /// <sumary> 
        /// (UserAcct Type:VarChar Len:20) 
        /// </sumary> 
        public string UserAcct
        {
            set { _useracct = value; }
            get { return _useracct; }
        }

        /// <sumary> 
        /// (LastUpdateDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime LastUpdateDate
        {
            set { _lastupdatedate = value; }
            get { return _lastupdatedate; }
        }

        #endregion --Property--

        #region --New--
        /// <summary>
        /// Constructed Function
        /// </summary>
        public BusList()
        {
            Init();
        }
        /// <summary>
        /// Constructed Function
        /// </summary>
        /// <param name="dr">DataRow</param>
        public BusList(DataRow dr)
        {
            Init();
            SetModel(dr);
        }
        /// <summary>
        /// Constructed Function
        /// </summary>
        /// <param name="dt">DataTable</param>
        public BusList(DataTable dt)
        {
            Init();
            SetModel(dt);
        }
        #endregion --New--

        #region --Private--
        /// <summary>
        /// Init The Private variable
        /// </summary>
        private void Init()
        {
            _recid = 0;
            _busid = string.Empty;
            _companyid = string.Empty;
            _companyname = string.Empty;
            _odometerbus = 0;
            _busidentificationno = string.Empty;
            _busspec = string.Empty;
            _busbrand = string.Empty;
            _manufacturerid = string.Empty;
            _manufacturername = string.Empty;
            _deliverycapacity = 0;
            _seatings = 0;
            _usedivid = string.Empty;
            _usedfor = string.Empty;
            _statusofcapital = string.Empty;
            _busconditions = string.Empty;
            _withbucket = false;
            _note = string.Empty;
            _price = 0;
            _invoice = string.Empty;
            _exfactorydate = DateTime.MinValue;
            _buydate = DateTime.MinValue;
            _busappearance = string.Empty;
            _buslicence = string.Empty;
            _buscertificateregistry = string.Empty;
            _operationcertificate = string.Empty;
            _insurancecompany = string.Empty;
            _annualverificationdate = DateTime.MinValue;
            _annualverificationcycle = 0;
            _insurancedate = DateTime.MinValue;
            _insurancecycle = 0;
            _operationceriticatedate = DateTime.MinValue;
            _operationceriticatecycle = 0;
            _extinguisher = 0;
            _extinguisherproductiondate = DateTime.MinValue;
            _extinguisherlifecycle = 0;
            _jack = 0;
            _jackproductiondate = DateTime.MinValue;
            _warningboard = 0;
            _manual = 0;
            _bustransfer = string.Empty;
            _buskey = 0;
            _cigarettelighter = 0;
            _sparetyre = 0;
            _tools = 0;
            _attachnote = string.Empty;
            _recdivid = string.Empty;
            _recacct = string.Empty;
            _recdate = DateTime.MinValue;
            _void = false;
            _voidacct = string.Empty;
            _voiddate = DateTime.MinValue;
            _useracct = string.Empty;
            _lastupdatedate = DateTime.MinValue;
        }
        /// <summary>
        /// SetModel By DataRow
        /// </summary>
        /// <param name="dr">DataRow</param>
        /// <returns>BusList</returns>
        private BusList SetModel(DataRow dr)
        {
            _recid = StrHelper.GetIntValue(dr[FIELD_RecID]);
            _busid = StrHelper.GetStringValue(dr[FIELD_BusID]);
            _companyid = StrHelper.GetStringValue(dr[FIELD_CompanyID]);
            _companyname = StrHelper.GetStringValue(dr[FIELD_CompanyName]);
            _odometerbus = StrHelper.GetDecimalValue(dr[FIELD_OdometerBus]);
            _busidentificationno = StrHelper.GetStringValue(dr[FIELD_BusIdentificationNO]);
            _busspec = StrHelper.GetStringValue(dr[FIELD_BusSpec]);
            _busbrand = StrHelper.GetStringValue(dr[FIELD_BusBrand]);
            _manufacturerid = StrHelper.GetStringValue(dr[FIELD_ManufacturerID]);
            _manufacturername = StrHelper.GetStringValue(dr[FIELD_ManufacturerName]);
            _deliverycapacity = StrHelper.GetDecimalValue(dr[FIELD_DeliveryCapacity]);
            _seatings = StrHelper.GetIntValue(dr[FIELD_Seatings]);
            _usedivid = StrHelper.GetStringValue(dr[FIELD_UseDivID]);
            _usedfor = StrHelper.GetStringValue(dr[FIELD_UsedFor]);
            _statusofcapital = StrHelper.GetStringValue(dr[FIELD_StatusOfCapital]);
            _busconditions = StrHelper.GetStringValue(dr[FIELD_BusConditions]);
            _withbucket = StrHelper.GetBoolValue(dr[FIELD_WithBucket]);
            _note = StrHelper.GetStringValue(dr[FIELD_Note]);
            _price = StrHelper.GetDecimalValue(dr[FIELD_Price]);
            _invoice = StrHelper.GetStringValue(dr[FIELD_Invoice]);
            _exfactorydate = StrHelper.GetDateTimeValue(dr[FIELD_ExFactoryDate]);
            _buydate = StrHelper.GetDateTimeValue(dr[FIELD_BuyDate]);
            _busappearance = StrHelper.GetStringValue(dr[FIELD_BusAppearance]);
            _buslicence = StrHelper.GetStringValue(dr[FIELD_BusLicence]);
            _buscertificateregistry = StrHelper.GetStringValue(dr[FIELD_BusCertificateRegistry]);
            _operationcertificate = StrHelper.GetStringValue(dr[FIELD_OperationCertificate]);
            _insurancecompany = StrHelper.GetStringValue(dr[FIELD_InsuranceCompany]);
            _annualverificationdate = StrHelper.GetDateTimeValue(dr[FIELD_AnnualVerificationDate]);
            _annualverificationcycle = StrHelper.GetIntValue(dr[FIELD_AnnualVerificationCycle]);
            _insurancedate = StrHelper.GetDateTimeValue(dr[FIELD_InsuranceDate]);
            _insurancecycle = StrHelper.GetIntValue(dr[FIELD_InsuranceCycle]);
            _operationceriticatedate = StrHelper.GetDateTimeValue(dr[FIELD_OperationCeriticateDate]);
            _operationceriticatecycle = StrHelper.GetIntValue(dr[FIELD_OperationCeriticateCycle]);
            _extinguisher = StrHelper.GetIntValue(dr[FIELD_Extinguisher]);
            _extinguisherproductiondate = StrHelper.GetDateTimeValue(dr[FIELD_ExtinguisherProductionDate]);
            _extinguisherlifecycle = StrHelper.GetIntValue(dr[FIELD_ExtinguisherLifecycle]);
            _jack = StrHelper.GetIntValue(dr[FIELD_Jack]);
            _jackproductiondate = StrHelper.GetDateTimeValue(dr[FIELD_JackProductionDate]);
            _warningboard = StrHelper.GetIntValue(dr[FIELD_WarningBoard]);
            _manual = StrHelper.GetIntValue(dr[FIELD_Manual]);
            _bustransfer = StrHelper.GetStringValue(dr[FIELD_BusTransfer]);
            _buskey = StrHelper.GetIntValue(dr[FIELD_BusKey]);
            _cigarettelighter = StrHelper.GetIntValue(dr[FIELD_CigaretteLighter]);
            _sparetyre = StrHelper.GetIntValue(dr[FIELD_SpareTyre]);
            _tools = StrHelper.GetIntValue(dr[FIELD_Tools]);
            _attachnote = StrHelper.GetStringValue(dr[FIELD_AttathNote]);

            _recdivid = StrHelper.GetStringValue(dr[FIELD_RecDivID]);
            _recacct = StrHelper.GetStringValue(dr[FIELD_RecAcct]);
            _recdate = StrHelper.GetDateTimeValue(dr[FIELD_RecDate]);
            //_void = StrHelper.GetBoolValue(dr[FIELD_Void]);
            //_voidacct = StrHelper.GetStringValue(dr[FIELD_VoidAcct]);
            //_voiddate = StrHelper.GetDateTimeValue(dr[FIELD_VoidDate]);
            _useracct = StrHelper.GetStringValue(dr[FIELD_UserAcct]);
            _lastupdatedate = StrHelper.GetDateTimeValue(dr[FIELD_LastUpdateDate]);
            return this;
        }
        /// <summary>
        /// SetModel By DataTable
        /// </summary>
        /// <param name="dt">DataTable</param>
        /// <returns>BusList</returns>
        private BusList SetModel(DataTable dt)
        {
            foreach (DataRow dr in dt.Rows)
            {
                SetModel(dr);
                break;
            }
            return this;
        }
        #endregion --Private--

    }
}

